$(function(){
	App.code = 'office';
	App.ctx = '/' + App.code;
	App.soagov = { ctx: '/soagov' };
	
	App.go2 = function(to) {
		switch (to) {
		case '':
		case '#':
		case 'workIndex':
			var acts = {};
			var menus = [{
				title : '任务管理系统首页',
				ctx: 'office',
			}];
			App.show({
				ctx: 'office',
				action: 'workIndex',
				params: {
					acts: acts,
					menus: menus
				}
			}, $.noop, App.main);
			break;
		case '#workList':
			App.show({
				ctx: 'office',
				action: 'workList',
				params: { id: App.getHashParam('id') }
			}, $.noop, App.main);
			break;
		case '#meeting':
		case 'meetingIndex':
			App.show({
				ctx: 'office',
				action: 'meetingIndex'
			}, $.noop, App.main);
			break;
		case '#group':
		case 'groupIndex':
			App.show({
				ctx: 'office',
				action: 'groupIndex',
				params: {}
			}, $.noop, App.main);
			break;
		}
	}
});
